package com.olda.play.auth;

import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
//在 SpringBoot 应用程序启动时，排除 jdbc 的自动装配机制即可，在程序入口文件中新增配置注解exclude=DataSourceAutoConfiguration.class
@SpringBootApplication(exclude= DataSourceAutoConfiguration.class)
@EnableDiscoveryClient
@DubboComponentScan(value = "com.olda.play.auth.service")
public class AuthPlayApplication {

    public static void main(String[] args) {
        SpringApplication.run(AuthPlayApplication.class, args);
    }
}
